package com.insurance.producttype.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 产品类别
 * @date 2020-09-16 22:01:28
 */
@Data
@TableName("tb_product_type")
public class ProductTypeEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * $column.comments
	 */
	@TableId
	private String id;
	/**
	 * $column.comments
	 */
	private String name;
	/**
	 * $column.comments
	 */
	private String code;
	/**
	 * $column.comments
	 */
	private String parentId;
	/**
	 * $column.comments
	 */
	private Integer orderNumber;
	/**
	 * $column.comments
	 */
	private String grade;
	/**
	 * $column.comments
	 */
	private String createPersonId;
	/**
	 * $column.comments
	 */
	private String createPersonName;
	/**
	 * $column.comments
	 */
	private Date createTime;
	/**
	 * $column.comments
	 */
	private String updatePersonId;
	/**
	 * $column.comments
	 */
	private String updatePersonName;
	/**
	 * $column.comments
	 */
	private Date updateTime;
	/**
	 * $column.comments
	 */
	private String deletePersonId;
	/**
	 * $column.comments
	 */
	private String deletePersonName;
	/**
	 * $column.comments
	 */
	private Date deleteTime;
	/**
	 * $column.comments
	 */
	private String state;
	/**
	 * $column.comments
	 */
	@TableLogic
	private String deleteFlag;

	/**
	 * 树结构属性
	 */
	@TableField(exist = false)
	private List<ProductTypeEntity> children;

}
